<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/views/common/taglibs.jsp" %>

<div class="col-lg-9 col-md-8">
    <table class="table right-web">
        <c:forEach items="${fieldRecords}" var="field" varStatus="v">
            <c:choose>
                <c:when test="${v.index%2 == 0}">
                    <tr>
                    <td class="th-web col-lg-2 col-md-2">${field.inchinese}：</td>
                    <td class="td-web col-lg-3 col-md-3">
                        <c:choose>
                            <c:when test="${fn:endsWith(field.name,'_img')}">
                                <a href="${filePath}/${datas[field.name]}" target="_blank">查看图片</a>
                            </c:when>
                            <c:when test="${fn:startsWith(field.name,'pk_') || fn:endsWith(field.name,'_singlebox')}">
                                <c:set var="fieldName" value="${field.name}_val"></c:set>
                                <label id="${datas[field.name]}">${datas[fieldName]}</label>
                            </c:when>
                            <c:otherwise>
                                <label>${datas[field.name]}</label>
                            </c:otherwise>
                        </c:choose>
                    </td>
                </c:when>
                <c:otherwise>
                    <td class="th-web col-lg-2 col-md-2">${field.inchinese}：</td>
                    <td class="td-web col-lg-3 col-md-3">
                        <c:choose>
                            <c:when test="${fn:endsWith(field.name,'_img')}">
                                <a href="${filePath}/${datas[field.name]}" target="_blank">查看图片</a>
                            </c:when>
                            <c:when test="${fn:startsWith(field.name,'pk_') || fn:endsWith(field.name,'_singlebox')}">
                                <c:set var="fieldName" value="${field.name}_val"></c:set>
                                <label id="${datas[field.name]}">${datas[fieldName]}</label>
                            </c:when>
                            <c:otherwise>
                                <label>${datas[field.name]}</label>
                            </c:otherwise>
                        </c:choose>
                    </td>
                    </tr>
                </c:otherwise>
            </c:choose>
        </c:forEach>
        <c:if test="${fn:length(fieldRecords)%2!= 0}">
            <td class="th-web col-lg-2 col-md-2"></td>
            <td class="td-web col-lg-3 col-md-3"></td>
            </tr>
        </c:if>
    </table>
</div>
